let defaultState = []
const productReducer = (state = defaultState, action) => {
    let { type, payload } = action;
    // console.log(payload)
    switch (type) {
        case 'GET_PRODUCT':
            return [...payload]
        default:
            return [...state]
    }
}

export default productReducer